package org.cxmzxy.zhlxyj;

public class Example02 {
    public static void main(String[] args) throws InterruptedException{
        MyRunnable01 mr = new MyRunnable01();
        Thread t1 = new Thread(mr,"线程1");
        Thread t2 = new Thread(mr,"线程2");
        t1.start();
        t2.start();
        while (true){
            System.out.println("main()方法在运行");
            Thread.sleep(1000);
        }
    }
}
